// pages/myinvite/myinvite.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    ismyinvite: true,
    touxiangurl: '../../image/qxtx/xuni.png',
    myinv: [
      { tel: '18015470105', date: '2018-05-08', gre: '30' },
      { tel: '13516645666', date: '2018-06-15', gre: '30' },
      { tel: '17765166416', date: '2018-07-12', gre: '30' },
      { tel: '18364646163', date: '2018-07-12', gre: '30' },
      { tel: '13054646465', date: '2018-07-21', gre: '30' },
      { tel: '16621546266', date: '2018-08-26', gre: '30' }
    ],
    invme: [
      { tel: '17765166416', date: '2018-05-08', ma: 'SKHE1209' },
      { tel: '13516645666', date: '2018-06-11', ma: 'NWUF8161' },
      { tel: '13054646465', date: '2018-06-13', ma: 'SNFI7565' },
      { tel: '16621546266', date: '2018-08-08', ma: 'WWFY7154' },
      { tel: '17821665462', date: '2018-08-30', ma: 'QGWW5416' }
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    var that = this;
    that.setData({
      touxiangurl: getApp().globalData.userInfo.avatarUrl,
    })
  },

  share:function(){
    wx.navigateTo({
      url: '../myshare/myshare',
    })
  },

  goMyinvite:function(){
    var that = this;
    that.setData({
      ismyinvite: true
    })
  },

  goInviteme: function () {
    var that = this;
    that.setData({
      ismyinvite: false
    })
  },
})